package archer.application.core.service.system;

import archer.application.core.entity.system.Suspicious;
import archer.application.core.service.BaseService;
import archer.framework.common.annotation.InternalOnly;
import archer.framework.common.repository.condition.QueryCondition;
import archer.framework.protocol.result.ExecuteResult;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author christ
 * @date 2016/8/18
 */
@Transactional
@Component
public class SuspiciousService extends BaseService {

    @InternalOnly
    public ExecuteResult findPagedList(QueryCondition queryCondition) {

        return success(
                findPagedList(Suspicious.find.query(), queryCondition)
        );
    }
}
